﻿
namespace ParaEditor.Domain.Entities
{
    public class VersionCtrlPk
    {
        public virtual short versionNum { get; set; }
        public virtual string versionContent { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is VersionCtrlPk)
            {
                VersionCtrlPk pk = obj as VersionCtrlPk;
                if (this.versionNum == pk.versionNum
                    && this.versionContent == pk.versionContent)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
            return false;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
